package team.szm.scd.database.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import team.szm.scd.database.properties.AppointmentTimeType;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.IdType.ASSIGN_ID;

@Data
@TableName(value = "register", autoResultMap = true)
public class Register {
    @TableId(value = "rid", type = ASSIGN_ID)
    String id;
    @TableField("uid")
    String userId;
    @TableField("did")
    String doctorId;
    @TableField("rtime")
    LocalDateTime registerTime;
    @TableField("cometime")
    LocalDate comeTime;
    //    @TableField("appointment_time_type")
    AppointmentTimeType appointmentTimeType;
    LocalDate appointmentDay;
    @TableField(exist = false)
    Integer departmentId;
    @TableField(exist = false)
    Integer hospitalId;
    @TableField("cid")
    String caseId;
}
